package com.chester.springbootseventeen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chester.springbootseventeen.entity.User;

/**
 * @author chester7cheng
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 级联分页
     * @param userIPage 分页参数
     * @return
     */
    IPage<User> selectPageCascade(IPage<User> userIPage);

    /**
     * 关联分页
     * @param userIPage 分页参数
     * @return
     */
    IPage<User> selectPageAssociation(IPage<User> userIPage);

}
